#!/usr/bin/fish
set -l i 0

function diff1
	echo -ne "\r$i"
	./random > bfdiff.in
	./1001 < bfdiff.in > bfdiff.out1
	./spj < bfdiff.out1 > bfdiff.out2
	diff bfdiff.out{1,2}
end

while diff1
	set i (expr $i + 1)
end
